/**
 * @file    app_monitor.h
 * @brief   用户任务-监控任务
 * @author  Liuwei
 * @version 1.0.1
 * @date    2023-04-24
 * 
 * @copyright Copyright (c) 2023 JBD-Energy Storage Technology Co. LTD
 * 
 * @par 修改日志:
 * <table>
 * <tr><th>Date       <th>Version   <th>Author   <th>Description
 * <tr><td>2023-04-24 <td>1.0.1     <td>name     <td>首次创建
 * </table>
 */

#ifndef __APP_MONITOR_H_
#define __APP_MONITOR_H_

/* file includes -------------------------------------------------------------*/
#include <stdint.h>
/* cplusplus -----------------------------------------------------------------*/
#ifdef __cplusplus
extern "C" {
#endif

/* macro/define/typedef ------------------------------------------------------*/
enum
{
	TASK_ID_MONITOR ,
    TASK_ID_DISP ,   
    TASK_ID_NVM ,
    TASK_ID_SAMPLE ,
    TASK_ID_CAN_COMM ,
    TASK_ID_DIAGNOSIS ,
    TASK_ID_SOX ,
    TASK_ID_COM_COMM ,
	TASK_ID_POW_MNG ,
    
    TASK_MAX_NUM ,
};
/* variables -----------------------------------------------------------------*/

/*******************************************************************************
 * public API List
 ******************************************************************************/
void vMonitorTask(void *pvParameters);
void task_run_count(uint8_t task_id);
uint32_t task_get_cycle(uint8_t task_id);
void task_printf_cycle(uint8_t com_id);
void task_run_reset(uint8_t task_id);

#ifdef __cplusplus
}
#endif

#endif  /* #ifndef __APP_MONITOR_H_ */
/********** Copyright (c) 2023 JBD-Energy Storage Technology Co. LTD *********/
